package com.egg.basic.entity.dict;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.egg.common.core.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 字典类型表
 * </p>
 *
 * @author east
 * @since 2022-06-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "basic_dict_type")
@ApiModel(value = "DictType对象", description = "字典类型表")
public class DictType extends BaseEntity {


    @ApiModelProperty(value = "字典类型编码")
    @TableField(value = "code")
    private String code;

    @ApiModelProperty(value = "字典名称")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "是否启用")
    @TableField(value = "enabled")
    private Boolean enabled;

    @ApiModelProperty(value = "排序")
    @TableField(value = "sort")
    private Integer sort;

}
